using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "TargetBeAttacked-获得被攻击的棋子", menuName = "Skill/Target/TargetBeAttacked-获得被攻击的棋子")]
public class BeAttackedTarget : TargetSelectorBase
{
    public override List<Chess> SelectTargets(Chess chess, GameEvent e)
    {
        if (e is not AttackChessEvent attackChessEvent)
        {
            Debug.LogWarning("e类型错误");
            return null;
        }
        return new List<Chess>(){attackChessEvent.BeAttackedChess};
    }
}